using System.ComponentModel;

namespace SumerCoreDevOps.Application.Dtos.Requests.Workflows
{
    /// <summary>
    /// 创建工作流请求
    /// </summary>
    public class CreateWorkflowRequest
    {
        /// <summary>
        /// 工作流名称
        /// </summary>
        /// <example>Java Build Pipeline</example>
        [Description("工作流名称")]
        public string Name { get; set; } = null!;

        /// <summary>
        /// 工作流描述
        /// </summary>
        /// <example>Standard Java SpringBoot build</example>
        [Description("工作流描述")]
        public string? Description { get; set; }

        /// <summary>
        /// 工作流版本号
        /// </summary>
        /// <example>1.0.0</example>
        [Description("工作流版本号")]
        public string Version { get; set; } = "1.0.0";
    }
}
